package com.xdap.common.exception;

/**
 * @author v_zhangdi11
 * @Description
 * @create 10/10/22 5:46 PM
 * Copyright: Copyright (c) 2022
 */
public abstract class XDapBaseException extends RuntimeException {
    BaseExceptionEnumInterface exceptionEnum;
    Object[] args;

    public XDapBaseException() {
    }

    public String getMessage() {
        return this.exceptionEnum.getMessage();
    }

    public String getCode() {
        return this.exceptionEnum.getCode();
    }

    public Object[] getArgs() {
        return this.args;
    }
}
